package com.zhitan.ems.alarm.enums;

public enum ALARTM_STATUS_ENUM {
	NO("未处理",0),
	PROCESSED("已处理",1),
	IGNORED("已处理",2),;
    private final String description;
    private final Integer code;
    ALARTM_STATUS_ENUM(String description,Integer code) {
        this.description = description;
        this.code = code;
    }
    public String getDescription() {
        return description;
    }

	public Integer getCode() {
		return code;
	}
	public static ALARTM_STATUS_ENUM findByState(int _nCode) {
		for (ALARTM_STATUS_ENUM type : ALARTM_STATUS_ENUM.values()) {
			if (_nCode == type.code) {
				return type;
			}
		}
		return NO;
	}
}